﻿using Abp.Domain.Entities.Auditing;
using FwProject.Authorization.Users;
using FwProject.ShoppingMall.Com;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace FwProject.ShoppingMall.EventAdvertising
{
    /// <summary>
    /// 订单消费优惠券
    /// </summary>
    [Table("shop_order_coupon")]
    public class ShopOrderCoupon : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNumber { get; set; }

        /// <summary>
        /// 订单ID
        /// </summary>
        public Guid OrderId { get; set; }

        [ForeignKey("OrderId")]
        public virtual ShopOrder ShopOrder { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 优惠券编号
        /// </summary>
        public Guid ShopCouponId { get; set; }

        [ForeignKey("ShopCouponId")]
        public virtual ShopCoupon ShopCoupon { get; set; }

        /// <summary>
        /// 用户优惠券编号
        /// </summary>
        public Guid ShopUserCouponId { get; set; }



    }
}
